package cn.jinjie.day10;

import java.io.File;

public class Test03 {
    public static void main(String[] args) {
        File f1 = new File("D:\\123.jpg");
        System.out.println(f1.length());//106 KB (109,477 字节)

        File f2 = new File("D:\\","123.jpg");
        System.out.println(f2.length());

        File file = new File("D:\\");
        File f3 = new File(file, "123.jpg");
        System.out.println(f3.length());
        //绝对路径：从盘符开始
        //相对路径：从项目的根目录下开始
    }
}
